// Created by Roman Novitsky on 07.07.2009


#region Imported Namespaces


using System;
using System.ComponentModel;


#endregion


namespace MobilePal.State
{
  public class CancelActivityStateEventArgs: CancelEventArgs, IActivityStateEventArgs
  {
    #region Fields


    private readonly Activity _activity;
    private readonly DateTime _toggleTime;


    #endregion


    #region Constructors/Finalizers


    public CancelActivityStateEventArgs(Activity activity, DateTime toggleTime)
    {
      _activity = activity;
      _toggleTime = toggleTime;
    }


    #endregion


    #region Properties/Indexers


    public Activity Activity
    {
      get
      {
        return _activity;
      }
    }

    public DateTime ToggleTime
    {
      get
      {
        return _toggleTime;
      }
    }


    #endregion
  }
}